import { createApp } from 'vue';
import ArcoVue, { Icon } from '@arco-design/web-vue';
import ArcoVueIcon from '@arco-design/web-vue/es/icon';
import App from './App.vue';
import mitt from 'mitt';
import utils from '@/utils/utils';
import router from '@/router/router.js';
import store from '@/store/store';
import permissions from './config/permissions';
import '@arco-design/web-vue/dist/arco.css';
import '@/assets/style/global.less';
import bread from '@/components/breadcrumb/bread.vue';
import commonPageBtn from '@/components/common-page-btn/index.vue';
const IconFont = Icon.addFromIconFontCn({ src: '//at.alicdn.com/t/c/font_3818150_iq20hbcb7m.js' });

const app = createApp(App);
app.config.globalProperties.mittBus = mitt();
app.component('icon-font', IconFont);
app.component('bread', bread);
app.component('commonPageBtn', commonPageBtn);
app.use(ArcoVue, {});
app.use(store);
app.use(utils);
app.use(router);
app.use(permissions);
app.use(ArcoVueIcon);
app.mount('#app');
